package com.linln.modules.system.dao;

import com.github.pagehelper.Page;
import com.linln.modules.system.entity.UserAccountDetail;
import com.linln.modules.system.entity.UserAccountDetailExample;
import com.linln.modules.system.vo.UserPointsDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserAccountDetailMapper {
    int countByExample(UserAccountDetailExample example);

    int deleteByExample(UserAccountDetailExample example);

    int deleteByPrimaryKey(String id);

    int insert(UserAccountDetail record);

    int insertSelective(UserAccountDetail record);

    List<UserAccountDetail> selectByExample(UserAccountDetailExample example);

    UserAccountDetail selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") UserAccountDetail record, @Param("example") UserAccountDetailExample example);

    int updateByExample(@Param("record") UserAccountDetail record, @Param("example") UserAccountDetailExample example);

    int updateByPrimaryKeySelective(UserAccountDetail record);

    int updateByPrimaryKey(UserAccountDetail record);

    Page<UserPointsDetailVO> getUserPointsDetailVO(@Param("userId") String userId);

}